#ifndef SUDOKUDIAGRAM_H_
#define SUDOKUDIAGRAM_H_

#include <QTableView>

#include "SudokuDataModel.h"
#include "SudokuGraphicsCellDelegate.h"


class SudokuDiagram : public QTableView
{
    Q_OBJECT

public:
    SudokuDiagram(QWidget* parent = 0);

protected:
    void contextMenuEvent(QContextMenuEvent* event);

    // For aspect ratio, TODO check if needed
    virtual int heightForWidth (int w) const;

private:
    Q_DISABLE_COPY(SudokuDiagram)

    /**
      * Deleted by parent
      */
    SudokuGraphicsCellDelegate* mDelegate;

};

#endif /*SUDOKUDIAGRAM_H_*/
